package org.example.learningplanassistant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 跑腿市场订单表
 * </p>
 *
 * @author gcbsh
 * @since 2025-03-25
 */
@Getter
@Setter
@TableName("help_run_orders")
public class HelpRunOrders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 跑腿市场订单表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发表者id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 跑腿者id
     */
    @TableField("runner_id")
    private Integer runnerId;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 详情
     */
    @TableField("description")
    private String description;

    /**
     * 出发地点
     */
    @TableField("location_from")
    private String locationFrom;

    /**
     * 起始地点
     */
    @TableField("location_to")
    private String locationTo;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 支付状态
     */
    @TableField("payment_status")
    private String paymentStatus;

    /**
     * 接受订单时间
     */
    @TableField("accepted_at")
    private LocalDateTime acceptedAt;

    /**
     * 完成时间
     */
    @TableField("completed_at")
    private LocalDateTime completedAt;

    /**
     * 用户对跑腿员的评分
     */
    @TableField("rating")
    private Byte rating;

    /**
     * 用户对跑腿员的评价内容
     */
    @TableField("review")
    private String review;

    /**
     * 订单状态
     */
    @TableField("status")
    private String status;
}
